Skip to content

Conversation

lukehorvat
Copy link

Hey, cool module. 🙂 It would be nice if you could run it via the CLI.

This PR adds some basic CLI support, so you can run bash-parser like so:

bash-parser 'echo ciao' # if the package is installed globally
npx bash-parser 'echo ciao' # if the package is installed locally 

Outputs the AST as JSON.

@thetayloredman
Copy link

I'd suggest adding file support with --file <path>!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants